#<INCLUDE_TYPOSCRIPT: source="FILE: fileadmin/typoscript/setup/root.ts">


options.clearCache.pages = 1
options.clearCache.all = 1
config.no_cache = 0

#####################################
# CONTENT 
#####################################

lib.field_content = CONTENT
lib.field_content < styles.content.get
lib.field_content {
	#wrap = <section id="contact"><div class="container">|</div></section>
	
	table = tt_content
	select {
		join = pages ON(pages.uid = tt_content.pid)
		where = colPos = 0
		pidInList = 4,5,6,7,8,9,10	
		languageField = sys_language_uid
  		orderBy = pages.sorting 		
	}
	

#   renderObj=COA
#   renderObj{
#  	5 = TEXT
#  	5{
#  		wrap = <section id="page-|"><div class="container">
#  		field=uid
#  	}
# 	  
#   10=TEXT  
#   10{
#     required=1
#     wrap = <div class="row"><div class="col-lg-12 text-center"><h2>|</h2><hr class="star-light"></div></div>
#     field=title
#    }
#    
#   15=TEXT  
#   15{
#     required=1
#     wrap = <div class="row"><div class="col-lg-12">
#   }
#    
#    
#   20=TEXT  
#   20{
#     required=1
#     wrap = <h4>|</h4>
#     field.ifEmpty=header
#   }
#
#
#   25=TEXT
#   25{
#     required=1
#     wrap = |
#     field=bodytext
#   }
#
#   30=TEXT  
#   30{
#     required=1
#     wrap = </div></div>
#   }
#
#
#  	35 = TEXT
#  	35{
#  		wrap = </div></section>
#  	}
#  }	


	

}


#####################################
# FOOTER PART 
#####################################

lib.footeraddress = TEXT
lib.footeraddress.value (
    <p>Bertrand et Rebecca Vuigner 
    <br />Les Marais
    <br />3967 Vercorin (VS)
    </p>	
)



#####################################
# TITEL 
#####################################

#lib.fieldtitle = TEXT
#lib.fieldtitle {
#  wrap = <div class="row"><div class="col-lg-12 text-center"><h2>|</h2><hr class="star-light"></div></div>
#  data = page:title
#}

#####################################
# SCRIPT BOTTOM 
#####################################

lib.scriptbottom = TEXT
lib.scriptbottom.value (

    <script src="fileadmin/templates/js/bootstrap.min.js"></script>
	<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.3/jquery.easing.min.js"></script>
    <script src="fileadmin/templates/js/classie.js"></script>
    <script src="fileadmin/templates/js/cbpAnimatedHeader.js"></script>
    <script src="fileadmin/templates/js/freelancer.js"></script>
    <script src="fileadmin/templates/js/jquery.skippr.js"></script>
    <script src="fileadmin/templates/js/lightbox.js"></script>
    
)


lib.jsslider = TEXT 
lib.jsslider.value (
	
	<script type="text/javascript">
		$(document).ready(function(){
            $("#slider").skippr({
            transition: 'slide',
            speed: 1000,
            easing: 'easeOutQuart',
            navType: 'block',
            childrenElementType: 'div',
            arrows: true,
            autoPlay: true,
            autoPlayDuration: 5000

        });
            
            
        });    	
	</script>
)

page = PAGE
page {
		# CSS Dateien einbinden
		#includeCSS.file1 = fileadmin/default/css/main_css.css
		       
		# TS Dateien einbinden
		#includeJS.file1 = fileadmin/default/javascript/

		bodyTag = <body id="page-top" class="index">
		10 = FLUIDTEMPLATE
		10 {
		#file = fileadmin/template/main_template.html
		partialRootPath = fileadmin/templates/partials/
	   	layoutRootPath = fileadmin/templates/layouts/
		
			variables {
				field_content < lib.field_content
			}
		
			file.stdWrap.cObject = CASE
			file.stdWrap.cObject {
				# slide the template
				key.data = levelfield:-1, backend_layout_next_level, slide
				key.override.field = backend_layout
				# default template file
				1 = TEXT
				1.value = fileadmin/templates/side.html
			}
		}
}

#####################################
# GRIDELEMENTS
#####################################

tt_content.gridelements_pi1.10 >

tt_content.gridelements_pi1.20.10.setup {
  # ID of gridelement
  1 < lib.gridelements.defaultGridSetup
  1 {
        wrap = |<div class="clear"></div>
        columns {
                     0 < .default
                     0.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                     2 < .default
                     2.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                }
     }

  # ID of gridelement
  2 < lib.gridelements.defaultGridSetup
  2 {
        wrap = |<div class="clear"></div>
        columns {
                     0 < .default
                     0.wrap = <div class="grid_4"><div class="inner-block"><div class="box" id="block">|</div></div></div>
                     1 < .default
                     1.wrap = <div class="grid_4"><div class="inner-block"><div class="box" id="block-1">|</div></div></div>
                     2 < .default
                     2.wrap = <div class="grid_4"><div class="inner-block"><div class="box" id="block-2">|</div></div></div>
                }
     }
  # ID of gridelement
  3 < lib.gridelements.defaultGridSetup
  3 {
        wrap = |
        columns {
                     0 < .default
                     0.wrap = <div class="grid_6"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_6"><div class="box-1">|</div></div>
                }
     }
     
  # ID of gridelement
  5 < lib.gridelements.defaultGridSetup
  5 {
        wrap = |
        columns {
                     0 < .default
                     0.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                     2 < .default
                     2.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                }
     }
  # ID of gridelement
  6 < lib.gridelements.defaultGridSetup
  6 {
        wrap = |
        columns {
                     0 < .default
                     0.wrap = <div class="grid_8"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                }
     }

  # ID of gridelement
  7 < lib.gridelements.defaultGridSetup
  7 {
        wrap = |<div class="clear"></div>
        columns {
                     0 < .default
                     0.wrap = <div class="grid_4 marg-left-0">|</div>
                     1 < .default
                     1.wrap = <div class="grid_4 marg-right-0">|</div>
                }
     }

  # ID of gridelement
  8 < lib.gridelements.defaultGridSetup
  8 {
        wrap = |
        columns {
                     0 < .default
                     0.wrap = <div class="grid_6"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_6"><div class="inner-block">|</div></div>
                }
     }

  # ID of gridelement
  9 < lib.gridelements.defaultGridSetup
  9 {
        wrap = |<div class="clear"></div>
        columns {
                     0 < .default
                     0.wrap = <div class="grid_4"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_8">|</div>
                }
     }


  # ID of gridelement
  10 < lib.gridelements.defaultGridSetup
  10 {
        wrap = |<div class="clear"></div>
        columns {
                     0 < .default
                     0.wrap = <div class="grid_6 p13"><div class="inner-block">|</div></div>
                     1 < .default
                     1.wrap = <div class="grid_6 p13"><div class="inner-block">|</div></div>
                }
     }

  # ID of gridelement
  11 < lib.gridelements.defaultGridSetup
  11 {
        wrap = |
        columns {
                     0 < .default
                     0.wrap = <div class="grid_3 marg-left-0 p13"><ul class="list-2 top-4">|</ul></div>
                     1 < .default
                     1.wrap = <div class="grid_3 marg-right-0 p13"><ul class="list-2 top-4">|</ul></div>
                }
     }
}




#####################################
# HEADER-DATA
#####################################

page.headerData.10 = TEXT
page.headerData.10.value (
 
   	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <!-- Bootstrap Core CSS -->
    <link href="fileadmin/templates/css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <link href="fileadmin/templates/css/freelancer.css" rel="stylesheet" type="text/css">
	<link href="fileadmin/templates/css/jquery.skippr.css" rel="stylesheet" type="text/css">
	<link href="fileadmin/templates/css/lightbox.css" rel="stylesheet" type="text/css">
    <!-- Fonts -->
	    <link href="fileadmin/templates/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    	<link href='http://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>

    <!-- IE8 support for HTML5 elements and media queries -->
    <!--[if lt IE 9]>
	<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
	<script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
    <![endif]-->

    <script src="fileadmin/templates/js/jquery-1.10.2.js"></script>


)




#####################################
# LANGUAGE
#####################################

lib.link.language = COA
lib.link.language {

	10 = TEXT
	10 {
		value = French
		typolink.parameter.data = page:uid
		typolink.additionalParams = &L=0
	}	

	20 = TEXT
	20 {
		value = Deutsch
		typolink.parameter.data = page:uid
		typolink.additionalParams = &L=1
	}
	
}

[globalVar = GP:L=1]
	config.language = de
[global]

[globalVar = GP:L=0] || [globalVar = GP:L= ]
	config.language = default
[global]

#lib.link.language = TEXT
#lib.link.language {
#	value = Deutsch
#	typolink.parameter.data = page:uid
#	typolink.additionalParams = &L=1
#}

# Änderungen für die englische Sprache
#[globalVar = GP:L=0]
#lib.link.language.value = French
#lib.link.language.typolink.additionalParams = &L=0
#[global]

#lib.language < lib.link.language


#####################################
# REAL-URL KONFIGURATION
#####################################

config {
    prefixLocalAnchors = all
    simulateStaticDocuments = 0
    baseURL = {$ROOT_BASE_URL}
    tx_realurl_enable = 1
}

#####################################
# TAGS ENTFERNEN
#####################################

#Standardheader
lib.stdheader.10.setCurrent.htmlSpecialChars = 0 

#csc-header entfernen
lib.stdheader.stdWrap.dataWrap >

#Überschriften ohne Zusätze
lib.stdheader.2.headerStyle >
lib.stdheader.3.headerClass >



lib.stdheader >
lib.stdheader = CASE
lib.stdheader {
	key.field = header_layout
	# DEFAULT H1-AUSGABE (0)
	default = TEXT
	default.required = 1
	default.field = header
	default.wrap = <div class="col-lg-12 text-center"><h2>|</h2></div>
	5 = TEXT
	5.field = header
	5.wrap = <h3>|</h3>
}

#lib.stdheader.default.10.1.dataWrap = <h2>|</h2>
#lib.stdheader {
#    10.1.fontTag = <p class="text10">|</p>
#    10.2.fontTag = <h3>|</h3>
#    10.3.fontTag = <h3>|</h3>
#    10.4.fontTag = <h4>|</h4>
#    10.5.fontTag = <h5>|</h5>
#    10.6.fontTag = <h6>|</h6>
#    stdWrap.dataWrap = |
#} 

# entfernen des spacer.gif bzw. clear.gif
tt_content.image.20.spaceBelowAbove = 0
tt_content.header.stdWrap.space = 0|0
tt_content.stdWrap.space = 0|0
tt_content.stdWrap.spaceBefore = 0
tt_content.stdWrap.spaceAfter = 0
lib.stdheader.stdWrap.space = 0|0

# Umbruch <br /> nach der ݢerschrift entfernen
lib.stdheader.10.stdWrap.wrap = |
tt_content.textpic.20.spaceBelowAbove = 0
tt_content.image.20.spaceBelowAbove = 0
tt_content.textpic.20.noStretchAndMarginCells = 1
tt_content.image.20.noStretchAndMarginCells = 1

#noch mehr entfernen
tt_content.stdWrap.dataWrap =
# class="bodytext" bei RTE abstellen
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >
#tt_content.stdWrap.innerWrap > 
tt_content.stdWrap.innerWrap.cObject.default.10.cObject.default.value = <section id="page-{field:uid}"><div class="container"><div class="row">|</div></div></section>
tt_content.stdWrap.innerWrap.cObject.default.20.10.value >  
tt_content.stdWrap.innerWrap.cObject.default.30.cObject.default.value >



tt_content.stdWrap.dataWrap >
#lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines>

plugin.tx_slider.wrap = | 


# IMAGE RENDERING
tt_content.image.20.layout.default.value = ###IMAGES######TEXT###
tt_content.image.20.rendering.noCaption.allStdWrap.wrap = |
tt_content.image.20.rendering.singleNoCaption.allStdWrap.innerWrap.cObject.0.value = |
tt_content.image.20.rendering.noCaption.rowStdWrap.wrap = |
tt_content.image.20.rendering.noCaption.columnStdWrap.wrap = |
tt_content.image.20.rendering.noCaption.singleStdWrap.wrap = |
tt_content.image.20.rendering.singleNoCaption.allStdWrap.wrap = |
#tt_content.image.20.rendering.singleNoCaption.singleStdWrap.wrap = <li>|</li>
tt_content.image.20.rendering.singleNoCaption.singleStdWrap.wrap = |<div class="demo-sep" style="margin-top: 50px;"></div>


#####################################
# PLUGINS WERTE
#####################################

plugin.tx_btkontaktformular {
	settings {
		email = juan.closas@brain-tec.ch
		betreff = Kontaktformular
		text = Besten Dank ...
	}
}


plugin.tt_news.displayList.subheader_stdWrap.append >

plugin.tx_kontaktformular{
	settings {
		sendemail = miguel@closas.ch
		baseUrl = bertrand.local
	}
} 

